package project.pianpian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import project.pianpian.entity.Order;
import project.pianpian.entity.Video;

import java.util.List;
@Mapper
@Repository
@Service
public interface VideoMapper extends BaseMapper<Video> {
    List<Video> selectPageByTimeVideos();

    List<Video> findByTitle(@Param("start") int start, @Param("size")int size, @Param("title") String title);

    int getTotalCount(@Param("title") String title);

    int insertVideo(Video video);
}
